package com.example.projectmanagement.dto;

import lombok.Data;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

@Data
public class UserDto {
    private Long id;

    @NotBlank(message = "用户名不能为空")
    private String username;

    @NotBlank(message = "姓名不能为空")
    private String name;

    private String phone;

    private String department;

    @NotNull(message = "状态不能为空")
    private Integer status;

    @NotBlank(message = "角色不能为空")
    private String role = "NORMAL_USER";

    private String password;
}